﻿<%@ Page Title="" Language="C#" MasterPageFile="../QTMusic.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="QTMusic.Websites.Default" %>

<%@ Register Src="../UserControls/RightPageOfHome.ascx" TagName="RightPageHome" TagPrefix="rph" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <!-- listening content -->
    <div class="main_content_hdr">
        <div><b>Nhung bai hat moi nhat</b></div>
    </div>

    <!-- Gridview de hien thi danh sach bai hat moi nhat -->
    <div class="main_content_holder">
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            Width="100%" AllowPaging="True" HorizontalAlign="Left" BorderColor="White" 
            BorderStyle="None" BorderWidth="0px" 
            onpageindexchanging="GridView1_PageIndexChanging">
            <Columns>
                <asp:TemplateField>
                    <ItemTemplate>

                        <!-- song entry -->
                        <div class="main_content_songentry">
                            <div class="main_content_songentry_leftimg"> 
                                <img src="../Resources/WebImages/file mp3.png" alt="../Resources/WebImages/file mp3.png" width="72px" height="72px" /> 
                            </div>
                            <div class="main_content_songentry_midinfo">
                                <div style="font-size: 18px; font-weight:bold">
                                    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# "~/Websites/Playing.aspx?SongID=" + Eval("song_id") %>'>
                                        <%# Eval("song_name")%>
                                    </asp:HyperLink>
                                </div>
                                <div style="font-size: 12px;">Trinh bay: <%# Eval("artist_name")%> - The loai: <%# Eval("genre_name")%> </div>
                                <br />
                            </div>
                            <div class="main_content_songentry_statistic">
                                 <img src="../Resources/WebImages/listen.jpg" width="15px" height="15px"> <%# Eval("song_play_count")%> - 
                                    <img src="../Resources/WebImages/like.jpg" width="15px" height="15px"> <%# Eval("song_like_count")%> - 
                                    <img src="../Resources/WebImages/comment.jpg" width="15px" height="15px"> <%# Eval("song_download_count")%> 
                            </div>
                        </div> 
                                                            
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
    </div>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
     <rph:RightPageHome runat="server" />
</asp:Content>
